//package com.burgeon.backend.EnterpriseWeChat.utils;
//
//
//import org.apache.http.util.TextUtils;
//
//public class LocationUtils {
////    GlobalCoordinates center = new GlobalCoordinates(38.885791,121.858205);
//    /**
//     * 根据坐标算距离
//     * @param startLng
//     * @param startLat
//     * @param endLng
//     * @param endLat
//     * @return
//     */
//    public static double getDistanceMeter(double startLng,double startLat,double endLng,double endLat){
//        GlobalCoordinates startGlobalCoordinates = new GlobalCoordinates(startLat, startLng);
//        GlobalCoordinates endGlobalCoordinates = new GlobalCoordinates(endLat, endLng);
//        GeodeticCurve geoCurve = new GeodeticCalculator().calculateGeodeticCurve(Ellipsoid.WGS84, startGlobalCoordinates, endGlobalCoordinates);
//        return geoCurve.getEllipsoidalDistance();
//    }
//
//    /**
//     * 根据开始坐标点，角度，计算结束点坐标
//     * @param startGlobalCoordinates
//     * @param startAngle
//     * @param distance
//     * @return
//     */
//    public static GlobalCoordinates getGlobalCoordinates(GlobalCoordinates startGlobalCoordinates, double startAngle, double distance){
//        return new GeodeticCalculator().calculateEndingGlobalCoordinates(Ellipsoid.WGS84, startGlobalCoordinates, startAngle, distance);
//    }
//}
//
